package com.jn.book.service;

import com.jn.book.entity.Books;
import com.jn.book.entity.CatalogEntity;

import io.reactivex.rxjava3.core.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface BookService {

    @GET("goodbook/catalog")
    Observable<CatalogEntity> getCatalog(@Query("key")String key);

    @GET("goodbook/query")
    Observable<Books> getBooks(@Query("key")String key,
                               @Query("catalog_id")String catalog_id,
                               @Query("pn")int pn,
                               @Query("rn")int rn);
}